package com.blinddate.dao;

import java.util.HashMap;
import java.util.List;

import com.blinddate.orm.BdUser;

public interface UserDAO{
	public boolean saveUser(BdUser user);
	public boolean updateUser(BdUser user);
	public boolean deleteUser(Integer id);
	public boolean deleteUser(BdUser user);
	public BdUser findUserByEmail(String email);
	public BdUser findUserByPhoneNumber(String phoneNumber); 
	/*
	 * before use this function, please pay attention to that if condition value null is different from ""
	 * the followed function is used to search user by parameter condition
	 * Map<String, String> condition: the first String is condition name, the second String is condition value
	 */
	public List<BdUser> findUsersByCondition(HashMap<String, String> conditions);
}
